#pragma once
#include "playbackplaybuttongroup.h"
#include <QWidget>
#include <QLabel>
#include <QPushButton>

class PlaybackBottom : public QWidget
{
    Q_OBJECT

public:
    PlaybackBottom(QWidget* p = nullptr);
    ~PlaybackBottom();

    void showTimeLabel(bool isShow);
    void setCurPlayTime(const qint64& curMs);
    void setTotalTime(const qint64& totalMs);

    PlaybackPlayButtonGroup* getcplaybtn(){  return PlayButtonGroupWidget;    }

private slots:

signals:
    void sig_play();
    void sig_stop();
    void sig_fullScreen();

    void sig_list();//播放列表

private:
    QString formatTimeMs(const qint64& timeMs);

private:
    void resizeEvent(QResizeEvent* event) override;

private:
    QLabel* CurPlayTimeLabel = nullptr;
    QLabel* TotalTimeLabel = nullptr;
    PlaybackPlayButtonGroup* PlayButtonGroupWidget = nullptr;
    QPushButton* EffectButton = nullptr;
    //QPushButton* FullscreenButton = nullptr;

};
